package ywh.event 
{
	import flash.events.Event;
	import ywh.stream.MediaStream;
	
	/**
	 * ...
	 * @author 杨伟华
	 */
	public class StreamEvent extends Event 
	{
		public static const STREAM_LIST_CHANGE_ITEM:String = "STREAM_LIST_CHANGE_ITEM";
		private var _stream:MediaStream;
		public function StreamEvent(type:String, stream:MediaStream) 
		{ 
			_stream = stream;
			super(type, false, false);
		} 
		
		public override function clone():Event 
		{ 
			return new StreamEvent(type,stream);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("StreamEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get stream():MediaStream 
		{
			return _stream;
		}
		
	}
	
}